package org.lvgo.jx3.furniture.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.lvgo.jx3.furniture.entity.FurnitureInfo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 家具基础表 Mapper 接口
 * </p>
 *
 * @author lvgorice@gmail.com
 * @since 2020-06-20
 */
public interface FurnitureInfoMapper extends BaseMapper<FurnitureInfo> {

    /**
     * 获取家具副本类别
     *
     * @return 家具副本
     */
    List<Map<String, Object>> getFurnitureSourceOptions();

    /**
     * 获取家具来源列表
     *
     * @return 家具来源列表
     */
    List<Map<String, Object>> getFurnitureSources();

    /**
     * 获取所有家具类别
     * SELECT
     * type,
     * type_desc
     * FROM
     * furniture_info
     * GROUP BY
     * type,
     * type_desc
     *
     * @return 家具类别 Map
     */
    List<Map<String, Object>> getFurnitureCategories();
}
